package com.aiwiown.snackmq.common.auth;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {
    private static final long serialVersionUID = -8002372250538358913L;
    private String username;
    // 在生产环境中，这里应该存储加盐后的哈希值，而不是明文密码
    private String password;
    private List<String> roles;
}